package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.pojo.DtsOrder;
import com.qf.vo.CategorySellAmts;
import com.qf.vo.DayStatis;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author zhaojian
 * @since 2021-05-12
 */
public interface DtsOrderMapper extends BaseMapper<DtsOrder> {

    //首页数据展示:订单及用户统计曲线图
    List<DayStatis> statisIncrOrderCnt(@Param("daysAgo") Integer daysAgo);
    //首页数据展示:饼状图-按分类统计销售额
    List<CategorySellAmts> categorySellStatis();
    //统计功能 订单统计
    List<Map> queryAllOrders();
}
